package beans;

import java.util.List;

import javax.ejb.Remote;

import dto.ResourceDTO;

@Remote
public interface ResourcesBeanRemote {

	public List<ResourceDTO> getAllResources();
	public List<ResourceDTO> getResourcesFromRepository(int idRepository);
	public List<ResourceDTO> getLockedResources(int idRepository);
	public void deleteResource(int resourceid,int authorId);
	public void unlockResource(int resourceid,int authorId);
	public String getResourceContent(ResourceDTO reDto);
	public boolean verifyUniqueness(int id, String name);
	public boolean lockResource(int idRes,int idUser);
	public ResourceDTO createResource(ResourceDTO reDto, int authorId);
	public void modifyResourceContent(ResourceDTO reDto, int authorId);
	public boolean verifyLock(int idResource, int idUser);
	public String getResourceNameById(int idResource);
	boolean verifyLockedByUser(int idResource, int idUser);
}
